﻿using CookComputing.XmlRpc;

namespace ASRSubsDownloader.Subtitles
{
    [XmlRpcUrl("http://api.opensubtitles.org/xml-rpc")]
    public interface IOpenSubtitles : IXmlRpcProxy
    {
        [XmlRpcMethod("ServerInfo")]
        XmlRpcStruct ServerInfo();

        [XmlRpcMethod("LogIn")]
        XmlRpcStruct LogIn(string username, string password, string language, string useragent);

        [XmlRpcMethod("SearchSubtitles")]
        XmlRpcStruct SearchSubtitles(string token, XmlRpcStruct[] parameters);

        [XmlRpcMethod("DownloadSubtitles")]
        XmlRpcStruct DownloadSubtitles(string token, int[] IDSubtitleFile);

        [XmlRpcMethod("listMethods")]
        XmlRpcStruct listMethods();

        [XmlRpcMethod("SystemListMethods")]
        XmlRpcStruct listMtds();

        [XmlRpcMethod("SystemMethodSignature")]
        XmlRpcStruct mtdSignature(string MethodName);

        [XmlRpcMethod("SystemMethodSignature")]
        XmlRpcStruct mtdHelp(string MethodName);
    }
}
